<template>
    <a-form-item label="宽度">
        <InputNumber v-model:value="StyleValue.width" :placeholder="placeholder" />
    </a-form-item>
</template>
<script setup>
import { inject, ref, watch } from 'vue';
import InputNumber from '../Base/InputNumber.vue';
const props = defineProps(['StyleValue']);
const StateEvent = inject('StateEvent');
const placeholder = ref();
watch(() => StateEvent.ActiveRect.value, (val) => {
    placeholder.value = val.width + '';
}, { deep: true, immediate: true })

</script>
<style lang="less" scoped></style>